package com.demo.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author hxg
 * @version 1.0
 * @date 2021/12/23 16:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class R<T> {
    private static final long serialVersionUID = 1L;

    private static final int SUCCESS_CODE = 200;

    private static final int ERROR_CODE = 500;

    private static final int DEFAULT_SUCCESS_MESSAGE = 200;

    private int code;

    private String msg;

    private T data;


    public R(Integer code,String msg){
        this(code,msg,null);
    }


}
